﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZJF.TestIf
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //Test1();
            //Test2();
            //Test3();
            //Test4();
            //Test5();
            Test6();

            Console.Read();
        }

        static void Test1()
        {
            Console.WriteLine("请输入年龄：");
            int age = int.Parse(Console.ReadLine());
            if (age >= 18)
            {
                Console.WriteLine("欢迎观看");
                return;
            }
            Console.WriteLine("您无法观看此网页");
            return;
        }

        static void Test2()
        {
            Console.WriteLine("请输入分数：");
            int score = int.Parse(Console.ReadLine());
            if (score >= 80)
            {
                Console.WriteLine("考试合格，发奖状！");
            }
            else
            {
                Console.WriteLine("考试不合格，叫家长！");
            }

        }

        static void Test3()
        {
            Console.WriteLine("请输入分数：");
            int score = int.Parse(Console.ReadLine());
            char grade;
            if (score < 60)
            {
                grade = 'D';
            }
            else if (score < 70)
            {
                grade = 'C';
            }
            else if (score < 80)
            {
                grade = 'B';
            }
            else if (score < 100)
            {
                grade = 'A';
            }
            else

            {
                grade = ' ';
                Console.WriteLine("输入不合法！");
            }

            Console.WriteLine($"本次考试的成绩等级为：{grade}");

        }

        static void Test5()
        {
            int a = 1;
            int b = 2;
            int max = a > b ? a : b;
            Console.WriteLine($"较大值:{max}");
        }

        static void Test6()
        {
            string choice = Console.ReadLine();
            switch (choice)
            {
                case "A":
                    {
                        Console.WriteLine("选择A");
                        break;
                    }
                case "B":
                    {

                        Console.WriteLine("选择Ｂ");
                        break;
                    }
                case "C":
                    {

                        Console.WriteLine("选择Ｂ");
                        break;
                    }
                case "D":
                    {

                        Console.WriteLine("选择Ｂ");
                        break;
                    }
                default: {

                        Console.WriteLine("不合法");
                        break;
                    }






            }
        }
    }
}
